#include "dataquery.h"
#include "ui_dataquery.h"

#include "common/data.h"
#include "common/database.h"
#include "common/tool.h"

#include <QtCharts>

DataQuery::DataQuery(QWidget* parent)
    : QWidget(parent)
    , ui(new Ui::DataQuery)
{
    ui->setupUi(this);

    connect(ui->btnStart, &QPushButton::clicked, this, &DataQuery::showEquipmentData);
}

DataQuery::~DataQuery()
{
    delete ui;
}

void DataQuery::showEquipmentData()
{
    Database::loadEquipmentData(Data::currentMissionId);
}
